package com.timkj.zgyd.dao;

import com.timkj.zgyd.entity.Zgyd_User_tb;
import com.timkj.zgyd.entity.Zgyd_telephone_tb;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

/**
 * @author : liji
 * @date : 2020-09-02 00:24
 */
@Repository
@Mapper
public interface ZgydTelephoneDao {
    /**
     * 查询可选的手机号
     */
    ArrayList<Zgyd_telephone_tb> SelectTelephoneByStatus(String status);

    /**
     * 更新手机号状态
     */
    int UpdateTelephoneStatus(Zgyd_telephone_tb telephone_tb);

    /**
     * 更新手机号openid
     */
    int UpdateTelephoneOpenid(Zgyd_telephone_tb telephone_tb);

    /**
     * 根据手机号查询
     */
    Zgyd_telephone_tb SelectTelephoneByNumber(String number);
}
